package com.yyp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.bean.CustomerInfo;
import com.yyp.dao.CustomerInfoDao;
import com.yyp.service.CustomerInfoService;

@Service
public class CustomerInfoServiceImpl implements CustomerInfoService {
	@Resource
	CustomerInfoDao customerInfoImpl;

	//
	// public void del(String names) {

	// CustomerInfoImpl.delete(names);
	// }

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CustomerInfoService#del(int)
	 */
	public void del(int id) {

		customerInfoImpl.delete(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CustomerInfoService#find(java.lang.Integer)
	 */
//	public CustomerInfo find(Integer id) {
//		return customerInfoImpl.find(id);
//	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CustomerInfoService#find(java.lang.String)
	 */
	public CustomerInfo find(String name) {
		return customerInfoImpl.find(name);

	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CustomerInfoService#findAll()
	 */
	public List<CustomerInfo> findAll() {
		return customerInfoImpl.findAll();
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CustomerInfoService#save(com.yyp.bean.CustomerInfo)
	 */
	public void save(CustomerInfo entity) {
		customerInfoImpl.save(entity);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CustomerInfoService#updata(com.yyp.bean.CustomerInfo)
	 */
	public void updata(CustomerInfo entity) {
		customerInfoImpl.updata(entity);
	}

}
